﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Castle.DynamicProxy;

namespace WpfApp_Autofac.Base;

public class LogInterceptor : IInterceptor
{
    public void Intercept(IInvocation invocation)
    {
        Console.WriteLine("方法调用前");
        invocation.Proceed();
        Console.WriteLine("方法调用后");
    }
}
